//
//  AttendeeSideNav.swift
//  CleanArchitecture
//
//  Created by siri on 2024/11/13.
//  Copyright © 2024 Tuan Truong. All rights reserved.
//

import SwiftUI

struct AttendeeSideNav: View {
    var areaCode: Int
    var floorArray = ["最近","群组"]
    @State public var selectFloorIndex = 0
    
    var body: some View {
        VStack(spacing: 0) {
            ForEach(0..<floorArray.count,id:\.self) {
                index in Button(action: {
                    self.selectFloorIndex = index
                }) {
                    Text(floorArray[index]).frame(width: 90, height: 50)
                        .foregroundColor(Color.g_color_font_primary).background(selectFloorIndex == index ? Color.white: Color.g_color_bg_grey)
                }
            }
        }.frame(width: 90,height: 600,alignment: .top).background(Color.g_color_bg_grey)
     
    }
}

#Preview {
    AttendeeSideNav(areaCode: 0)
}
